<template>
  <el-table-column :="attrs">
    <template #default="{ row }">
      <ElButton v-if="['无房型', '正常营业'].includes(row.status)" link :type="row.status === '无房型' ? 'danger' : 'primary'">{{ row.status === '无房型' ? '已关闭' : row.status }}</ElButton>
      <span v-else>{{ row.status }}</span>
    </template>
  </el-table-column>
</template>

<script setup lang="ts">
import { useAttrs } from 'vue'
const attrs = useAttrs()
</script>
